<?php
/**
 * CreateTime: 2023/6/2 16:01
 */

namespace App\Http\Controllers\SMS;

use App\Consts\ResponseConsts\ResponseStatusConsts;
use App\Func\ResponseFunc;
use App\Models\SMS\SMSTemp;

class SmsController
{
    private $smsModel;

    public function __construct()
    {
        $this->smsModel = new SMSTemp();
    }

    public function getSMSTempSelect(){
        $res =  $this->smsModel->select([
            'sms_temp_id',
            'sms_temp_id as key',
            'temp_content as value',
        ])->where('status',1)->get();

        return ResponseFunc::returnJson(
            'ok',
            $res,
            '获取短信模板列表成功',
            ResponseStatusConsts::OK_200_RESPONSE_STATUS
        );
    }
}